﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GarageEdit.aspx.cs" Inherits="Announcement.Admin.GarageEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>小区车位、车库对外销售方案</title>
    <link href="../css/Default.css" rel="stylesheet" type="text/css" />
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/custom.css" rel="stylesheet" type="text/css" />

    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <header id="top">
		<div class="wrapper">
			<!-- Title/Logo - can use text instead of image -->
			<div id="title">
			<a href="../Admin/ApplyMgr.aspx">
			<img SRC="../img/lzfcjys_logo.png" alt="lzfcjys" />
			</a>
			</div>
			<!-- Top navigation -->
			<div id="topnav">
				<a href="#"><img class="avatar" SRC="../img/user_32.png" alt="" /></a>
				Logged in as <b>admin</b>
				<span>|</span> <asp:LinkButton ID="lbtnExit" runat="server" 
                    onclick="lbtnExit_Click">退出</asp:LinkButton><br />
			</div>
			
			
			<!-- End of Aside links -->
		</div>
	</header>
    <div id="pagetitle">
        <div class="wrapper">
            <h1>
                首页 &rarr; 公告申请表 &rarr; <span>销售方案</span></h1>
        </div>
    </div>
    <div class="clear">
        &nbsp;</div>
    <div id="mainbox">
        <div>
            <asp:ObjectDataSource ID="odsGarage" runat="server" DeleteMethod="Delete" InsertMethod="Insert"
                OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByCCode" TypeName="Announcement.DAL.DataSetGarageTableAdapters.T_GarageTableAdapter"
                UpdateMethod="Update">
                <DeleteParameters>
                    <asp:Parameter Name="Original_Id" Type="Int32" />
                </DeleteParameters>
                <UpdateParameters>
                    <asp:Parameter Name="HouseSum" Type="Int32" />
                    <asp:Parameter Name="HouseSold" Type="Int32" />
                    <asp:Parameter Name="HouseUnsold" Type="Int32" />
                    <asp:Parameter Name="HouseSoldRate" Type="Decimal" />
                    <asp:Parameter Name="HouseIsSell" Type="Boolean" />
                    <asp:Parameter Name="GarageSum" Type="Int32" />
                    <asp:Parameter Name="GarageSold" Type="Int32" />
                    <asp:Parameter Name="GarageUnsold" Type="Int32" />
                    <asp:Parameter Name="GaragePlanSell" Type="Int32" />
                    <asp:Parameter Name="GaragePlanRate" Type="Decimal" />
                    <asp:Parameter Name="DistrictName" Type="String" />
                    <asp:Parameter Name="DevelopersName" Type="String" />
                    <asp:Parameter Name="StartDate" Type="DateTime" />
                    <asp:Parameter Name="EndDate" Type="DateTime" />
                    <asp:Parameter Name="FillDate" Type="DateTime" />
                    <asp:Parameter Name="Original_Id" Type="Int32" />
                </UpdateParameters>
                <SelectParameters>
                    <asp:QueryStringParameter Name="CCode" QueryStringField="CCode" Type="String" />
                </SelectParameters>
                <InsertParameters>
                    <asp:Parameter Name="HouseSum" Type="Int32" />
                    <asp:Parameter Name="HouseSold" Type="Int32" />
                    <asp:Parameter Name="HouseUnsold" Type="Int32" />
                    <asp:Parameter Name="HouseSoldRate" Type="Decimal" />
                    <asp:Parameter Name="HouseIsSell" Type="Boolean" />
                    <asp:Parameter Name="GarageSum" Type="Int32" />
                    <asp:Parameter Name="GarageSold" Type="Int32" />
                    <asp:Parameter Name="GarageUnsold" Type="Int32" />
                    <asp:Parameter Name="GaragePlanSell" Type="Int32" />
                    <asp:Parameter Name="GaragePlanRate" Type="Decimal" />
                    <asp:Parameter Name="DistrictName" Type="String" />
                    <asp:Parameter Name="DevelopersName" Type="String" />
                    <asp:Parameter Name="StartDate" Type="DateTime" />
                    <asp:Parameter Name="EndDate" Type="DateTime" />
                    <asp:Parameter Name="FillDate" Type="DateTime" />
                </InsertParameters>
            </asp:ObjectDataSource>
            <asp:FormView ID="fvGarage" runat="server" DataKeyNames="Id" DataSourceID="odsGarage"
                OnItemCommand="fvGarage_ItemCommand">
                <EditItemTemplate>
                    <asp:HiddenField ID="hfId" runat="server" Value='<%# Eval("Id") %>' />
                    <table width="100%" class="stylized">
                        <tr>
                            <th colspan="4">
                                基本信息
                            </th>
                        </tr>
                        <tr>
                            <td>
                                小区名称
                            </td>
                            <td>
                                房开名称
                            </td>
                            <td>
                                小区业主优先购买期限（60日内）
                            </td>
                            <td>
                                填写时间
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:TextBox ID="DistrictNameTextBox" runat="server" Text='<%# Bind("DistrictName") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="DevelopersNameTextBox" runat="server" Text='<%# Bind("DevelopersName") %>' />
                            </td>
                            <td>
                                从<asp:TextBox ID="StartDateTextBox" runat="server" Width="100px" Text='<%# Bind("StartDate","{0:yyyy-MM-dd}") %>'
                                    onclick="WdatePicker()" />
                                到<asp:TextBox ID="EndDateTextBox" runat="server" Width="100px" Text='<%# Bind("EndDate","{0:yyyy-MM-dd}") %>'
                                    onclick="WdatePicker()" />
                            </td>
                            <td>
                                <asp:TextBox ID="FillDateTextBox" runat="server" Width="100px" Text='<%# Bind("FillDate","{0:yyyy-MM-dd}") %>'
                                    onclick="WdatePicker()" />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" class="stylized">
                        <tr>
                            <th colspan="5">
                                小区商品房状况
                            </th>
                        </tr>
                        <tr>
                            <td>
                                商品房总数量（套、间）
                            </td>
                            <td>
                                已售（备案）商品房数量（套、间）
                            </td>
                            <td>
                                未售商品房数量（套、间）
                            </td>
                            <td>
                                商品房已售数量与总数量比列（%）
                            </td>
                            <td>
                                是否符合对外销售条件
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:TextBox ID="HouseSumTextBox" runat="server" Width="70px" Text='<%# Bind("HouseSum") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="HouseSoldTextBox" runat="server" Width="70px" Text='<%# Bind("HouseSold") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="HouseUnsoldTextBox" runat="server" Width="70px" Text='<%# Bind("HouseUnsold") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="HouseSoldRateTextBox" runat="server" Width="70px" Text='<%# Bind("HouseSoldRate") %>' />
                            </td>
                            <td>
                                <asp:CheckBox ID="HouseIsSellCheckBox" runat="server" Width="70px" Checked='<%# Bind("HouseIsSell") %>' />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" class="stylized">
                        <tr>
                            <th colspan="5">
                                小区车位、车库状况
                            </th>
                        </tr>
                        <tr>
                            <td>
                                车位、车库总数量（间）
                            </td>
                            <td>
                                已售（备案）车位、车库数量（间）
                            </td>
                            <td>
                                未售车位、车库数量（间）
                            </td>
                            <td>
                                拟对外销售车位、车库数量（间）
                            </td>
                            <td>
                                车位、车库规划配置比（%）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:TextBox ID="GarageSumTextBox" runat="server" Width="70px" Text='<%# Bind("GarageSum") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="GarageSoldTextBox" runat="server" Width="70px" Text='<%# Bind("GarageSold") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="GarageUnsoldTextBox" runat="server" Width="70px" Text='<%# Bind("GarageUnsold") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="GaragePlanSellTextBox" runat="server" Width="70px" Text='<%# Bind("GaragePlanSell") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="GaragePlanRateTextBox" runat="server" Width="70px" Text='<%# Bind("GaragePlanRate") %>' />
                            </td>
                        </tr>
                    </table>
                    <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                        Text="更新" />
                    &nbsp;<asp:LinkButton ID="SalesButton" runat="server" CausesValidation="False" CommandName="Sales"
                        Text="编辑拟销售情况" />
                    &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="取消" />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:HiddenField ID="hfId" runat="server" Value='<%# Eval("Id") %>' />
                    <table width="100%" class="stylized">
                        <tr>
                            <th colspan="4">
                                基本信息
                            </th>
                        </tr>
                        <tr>
                            <td>
                                小区名称
                            </td>
                            <td>
                                房开名称
                            </td>
                            <td>
                                小区业主优先购买期限（60日内）
                            </td>
                            <td>
                                填写时间
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="DistrictNameLabel" runat="server" Text='<%# Bind("DistrictName") %>' />
                            </td>
                            <td>
                                <asp:Label ID="DevelopersNameLabel" runat="server" Text='<%# Bind("DevelopersName") %>' />
                            </td>
                            <td>
                                从<asp:Label ID="StartDateLabel" runat="server" Text='<%# Bind("StartDate","{0:yyyy年MM月dd日}")%>' />
                                到<asp:Label ID="EndDateLabel" runat="server" Text='<%# Bind("EndDate","{0:yyyy年MM月dd日}")%>' />
                            </td>
                            <td>
                                <asp:Label ID="FillDateLabel" runat="server" Text='<%# Bind("FillDate","{0:yyyy年MM月dd日}")%>' />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" class="stylized">
                        <tr>
                            <th colspan="5">
                                小区商品房状况
                            </th>
                        </tr>
                        <tr>
                            <td>
                                商品房总数量（套、间）
                            </td>
                            <td>
                                已售（备案）商品房数量（套、间）
                            </td>
                            <td>
                                未售商品房数量（套、间）
                            </td>
                            <td>
                                商品房已售数量与总数量比列（%）
                            </td>
                            <td>
                                是否符合对外销售条件
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="HouseSumLabel" runat="server" Text='<%# Bind("HouseSum") %>' />
                            </td>
                            <td>
                                <asp:Label ID="HouseSoldLabel" runat="server" Text='<%# Bind("HouseSold") %>' />
                            </td>
                            <td>
                                <asp:Label ID="HouseUnsoldLabel" runat="server" Text='<%# Bind("HouseUnsold") %>' />
                            </td>
                            <td>
                                <asp:Label ID="HouseSoldRateLabel" runat="server" Text='<%# Bind("HouseSoldRate") %>' />
                            </td>
                            <td>
                                <asp:CheckBox ID="HouseIsSellCheckBox" runat="server" Checked='<%# Bind("HouseIsSell") %>'
                                    Enabled="false" />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" class="stylized">
                        <tr>
                            <th colspan="5">
                                小区车位、车库状况
                            </th>
                        </tr>
                        <tr>
                            <td>
                                车位、车库总数量（间）
                            </td>
                            <td>
                                已售（备案）车位、车库数量（间）
                            </td>
                            <td>
                                未售车位、车库数量（间）
                            </td>
                            <td>
                                拟对外销售车位、车库数量（间）
                            </td>
                            <td>
                                车位、车库规划配置比（%）
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="GarageSumLabel" runat="server" Text='<%# Bind("GarageSum") %>' />
                            </td>
                            <td>
                                <asp:Label ID="GarageSoldLabel" runat="server" Text='<%# Bind("GarageSold") %>' />
                            </td>
                            <td>
                                <asp:Label ID="GarageUnsoldLabel" runat="server" Text='<%# Bind("GarageUnsold") %>' />
                            </td>
                            <td>
                                <asp:Label ID="GaragePlanSellLabel" runat="server" Text='<%# Bind("GaragePlanSell") %>' />
                            </td>
                            <td>
                                <asp:Label ID="GaragePlanRateLabel" runat="server" Text='<%# Bind("GaragePlanRate") %>' />
                            </td>
                        </tr>
                    </table>
                    <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit"
                        Text="编辑" />
                    &nbsp;<asp:LinkButton ID="SalesButton" runat="server" CausesValidation="False" CommandName="Sales"
                        Text="编辑拟销售情况" />
                    &nbsp;<asp:LinkButton ID="AnnouncementButton" runat="server" CommandName="Announcement"
                        Text="查看公告" />
                    &nbsp;<asp:LinkButton ID="BackButton" runat="server" CausesValidation="False" CommandName="Back"
                        Text="返回" />
                </ItemTemplate>
            </asp:FormView>
        </div>
    </div>
    <footer id="bottom">
		<div class="wrapper">
			<p>Copyright &copy; 2010 <b><a href="http://www.lzfcjys.com" title="www.lzfcjys.com">www.lzfcjys.com</a></b> | Icons by <a href="http://www.lzfcjys.com">柳州市房产交易管理网</a></p>
		</div>
	</footer>
    </form>
</body>
</html>
